﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:models="clr-namespace:InsuranceAdjuster.Models"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--Add an instance of the BranchStyle to the Application Resources-->
    <!--This gives global visibility for dynamic style settings in all XAML Styles -->
    <models:BranchStyle x:Key="BranchStyle"/>

    <Style x:Key="BranchHeaderGridStyle" TargetType="Grid">
        <Setter Property="Background" 
                    Value="{Binding BackgroundBrush, 
                    Source={StaticResource BranchStyle}}"/>
    </Style>

    <Style x:Key="BranchHeaderTextBlockStyle" TargetType="TextBlock">
        <Setter Property="Foreground" 
                    Value="{Binding ForegroundBrush, 
                    Source={StaticResource BranchStyle}}"/>
        <Setter Property="FontFamily" 
                    Value="{Binding BranchFont, 
                 Source={StaticResource BranchStyle}}"/>

        <Setter Property="FontSize" Value="15"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="Margin" Value="0,15,0,4"/>
        <Setter Property="HorizontalAlignment" Value="Left"/>
    </Style>


    <Style x:Key="BranchHeaderStackPanelStyle" TargetType="StackPanel">
        <Setter Property="Background" 
            Value="{Binding HeadingBackgroundBrush, 
            Source={StaticResource BranchStyle}}"/>
    </Style>
</ResourceDictionary>
    
